import { useState } from 'react';
import Home from './pages/home/Home';

function App() {
  const [isDark, setIsDark] = useState(false);

  // 切换主题函数
  const toggleTheme = () => setIsDark((v) => !v);

  return (
    <Home isDark={isDark} toggleTheme={toggleTheme} />
  );
}

export default App;


